<?php
require('config.php');

        $text=$_REQUEST['text'];
		$sql="select * from `".$oto."_shops` where shopFlag='1' and shopStatus='1' and `shopName` LIKE '%$text%' ";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$shop_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($shop_info))
		{
			echo json_encode($shop_info);
		}
		else
		{
			echo '[]';
		}
		
?>